/*
 *  Copyright (c) 2022 李伟国
 *  online-judge is licensed under Mulan PSL v2.
 *  You can use this software according to the terms and conditions of the Mulan PSL v2.
 *  You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 *  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 *  See the Mulan PSL v2 for more details.
 */

package edu.platform.service;

import org.springframework.web.multipart.MultipartFile;

public interface IFileService {

    /**
     * 添加文件
     * @param file 文件
     * @return 文件路径
     */
    String addFile(MultipartFile file);

    /**
     * 根据文件名称查找文件
     * @param filename 文件名
     * @return 文件本地访问路径
     */
    String findFilePath(String filename);
}
